// TOWN DIALOGUE SCRIPT
//    Town 161: Mernia

begintalkscript;

variables;

short i,j,k,r1,choice;


begintalknode;
	tag = 1;
	state = -1;
	nextstate = 1;
	question = "Corin";
	text1 = "The Empire soldier is too busy looking for invading golems to speak with you.";


// Corin

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Corin";
	text1 = "You meet a merchant, resplendent in velvet robes and silver jewelry. However, he has a distant look, and there are traces of something green crusted on the corner of his mouth.";
	text2 = "_I am Corin,_ he says in a slurred voice. _Welcome to ... Mernia._";
	text5 = "Corin sits quietly, staring at the top of the counter. He doesn't seem up to running his business. Flecks of greenish saliva gather at the corners of his mouth.";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_What's that green stuff around your mouth?_";
	text1 = "_Nothing. Nothing there._ He suddenly turns away, upset.";
	action = END_TALK;

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_So ... There was just a golem attack outside._";
	text1 = "_Was there? Oh. Glad it all worked out._";

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_Do you work in this town?_";
	text1 = "Suddenly, he becomes very cheery and energetic. The transformation is eerily quick. His voice is still slurred, however. _I run the Mernia lumberyard!_";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_How is the lumber business?_";
	text1 = "He laughs. _Of course, the Empire has quarantined all of Valorim, so our wood sits here, worthless except as termite food! But what does it matter? Everything else is so interesting!_";

begintalknode;
	state = 3;
	nextstate = 4;
	question = "_What's so interesting?_";
	text1 = "He giggles. _Why, when seen from a distance, a golem's fireball is a beautiful thing! And their bolts of ice leave wondrous, elegant tracings through the air!_ One side of his face twitches slightly.";
	text2 = "_And if everything falls apart, we can go to the Isle of Maddok._";

begintalknode;
	state = 4;
	nextstate = 5;
	question = "_Where is the Isle of Maddok?_";
	text1 = "_Just across the water to the east. Covered with all sorts of undead. Isn't that great? All that land, there for the taking, by someone brave. Isn't that ducky?_";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_How can I go out there?_";
	text1 = "_Boats. We don't have boats. Try Gale. Gale might have boats out to that ruin. Horrible, horrible ruin._ He giggles.";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_I'm sorry. Did you just say 'ducky'?_";
	text1 = "_Yes! Ducky!_ His cheeriness is starting to turn slightly manic. _Why, if we don't want to be carved up with the golems, we could move over there and have our souls devoured! Ducky is the best word I can think of for that!_";
	text2 = "He laughs, a raspy, ghoulish sound that makes your skin crawl. You leave Corin in his strange world.";
	action = END_TALK;

// Sydow

begintalknode;
	tag = 60;
	state = -1;
	nextstate = 29;
	question = "Sydow";
	text1 = "You meet a tall woman in priest's robes. She radiates the poise and strength of one of Valorim's holy people. However, she is also very weary, and her upper arm is bandaged.";
	text2 = "She wanders around town, waiting for something bad to happen. She's happy to take a break and speak with you. _I am Priestess Sydow._ ";
	text5 = "Priestess Sydow waits to see what else you have to say. Every once in a while, she checks the bandages on her arm, wincing in pain when she touches them.";
	action = INTRO;

begintalknode;
	state = 29;
	nextstate = 30;
	question = "_Are you a healer?_";
	text1 = "_Yes. I travel Monoroe Province, providing healing and aid._";

begintalknode;
	state = 30;
	nextstate = 31;
	question = "_Then you know of what's been happening around Monoroe._";
	text1 = "_I'm sure I don't need to elaborate on the horrors that have been transpiring here. I am simply doing all I can to help._";
	text3 = "_I'm sure I don't need to elaborate on the horrors that have transpired here. I am simply doing all I can to help. Fortunately, of late, things have greatly improved._";
	action = DEP_ON_SDF 308 0 0;

begintalknode;
	state = 31;
	nextstate = -1;
	question = "_Can you heal me?_";
	text1 = "_I think you have resources the people here don't. I must save my energy and my potions to help the poor souls here._";

begintalknode;
	state = 31;
	nextstate = -1;
	question = "_How have you usually helped?_";
	text1 = "_I heal those who can't afford it for free, and only charge enough to keep myself going to those who can. We all need to work together to survive the golems._";

begintalknode;
	state = 29;
	nextstate = -1;
	condition = get_prestige() >= 22;
	question = "_Can you teach me any priest spells?_";
	text1 = "You conclude your business.";
	code =
		begin_shop_mode("Sydow's Spells","Sydow is a powerful priestess, but she is only willing to spread beneficial knowledge. She will only teach others how to help, not hurt.",110,1,3);
	break;

begintalknode;
	state = 29;
	nextstate = -1;
	condition = get_prestige() < 22;
	question = "_Can you teach me any priest spells?_";
	text1 = "She shakes her head. _I have not heard of you. I only teach those I am sure will use the power for beneficial ends._";

begintalknode;
	state = 29;
	nextstate = 32;
	question = "_Is it difficult being a healer in these parts?_";
	text1 = "_Terrible. The golems are lethal. It is impossible to engage them without suffering at least one wounded soldier. But things are easy here. It is terrible in Tevrono._";
	text3 = "_Bad, but better than it was. There are still a few golems around, wandering and functional. And, as I'm sure you know, even one golem can do terrible harm._";
	action = DEP_ON_SDF 308 0 0;

begintalknode;
	state = 32;
	nextstate = -1;
	condition = gf(308,0) == 0;
	question = "_Tell me about Tevrono?_";
	text1 = "_It is not wise to mention it, not so close to Gale. But I'll tell you this._ She whispers. _If you are serious about battling golems, Tevrono is where you should be._";

